#ifndef SIGNALCONTROL_H
#define SIGNALCONTROL_H

#include <QObject>
#include <QString>
#include <QUuid>
#include <QDebug>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>

#include "RunConfig.h"

#include <iostream>

//启停信号类
class SignalControl: public QObject
{
    Q_OBJECT
private:
    /* data */
    QNetworkAccessManager *manager;// 创建网络访问管理器
    QString serial_num;
    RunConfig& data_con;//配置
    void generate_uuid(void);//生成UUID
    void clear_uuid(void);//清除UUID

private slots:
    void handleReply(QNetworkReply *reply);

public:
    SignalControl(RunConfig& data_a);
    ~SignalControl();
    
    void Start_signal(void);//开始信号
    void Stop_signal(void);//停止信号
};

#endif